#ifndef ___ADC_H
#define ___ADC_H 4

#define ADCInit() ADCON1=0x84; ADCON0=0x81;  ADIF=0; ADIE=1
#define CurrentInput 0x81
#define TemperatureInput 0x89
extern void ADC_CurrentService(void);
//extern void ADC_TemperatureService(void);
extern unsigned int getADC(void);
extern unsigned int Measured_current (void);
extern unsigned int ADCTemp(void);
//extern void SelectADCSource(unsigned char);

// =========== function for interrupt  purposes =================
extern void ADC2Buffer(void); // store readed curent to circular buffer
extern void ADC2Temp(void); // store readed tempearture to internal variable


#endif



